package main

import (
	"fmt"
)

//带有多个返回值的函数
func SumAndProduct(a, b int) (A, B int) {
	A = a + b
	B = a * b
	return
}

func main() {
	x, y := 3, 4
	add, multi := SumAndProduct(x, y)
	fmt.Println(add)
	fmt.Println(multi)

}
